package com.sj.uabrowser.db;

import org.greenrobot.greendao.annotation.Entity;
import org.greenrobot.greendao.annotation.Generated;
import org.greenrobot.greendao.annotation.Id;

@Entity
public class Search {

    public static final int CONTENT_KEYWORDS = 0;
    public static final int CONTENT_URL = 1;

    @Id(autoincrement = true)
    private Long id;//主键  自增长

    private int type;//0.文本 1.url

    private String title;
    private String content;
    private long date;


    @Generated(hash = 583119672)
    public Search(Long id, int type, String title, String content, long date) {
        this.id = id;
        this.type = type;
        this.title = title;
        this.content = content;
        this.date = date;
    }

    @Generated(hash = 1644193961)
    public Search() {
    }


    public long getDate() {
        return date;
    }

    public void setDate(long date) {
        this.date = date;
    }

    public Long getId() {
        return this.id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public int getType() {
        return this.type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getContent() {
        return this.content;
    }

    public void setContent(String content) {
        this.content = content;
    }


    public String getTitle() {
        return title;
    }

    public void setTitle(String title) {
        this.title = title;
    }
}
